package com.ticket.entity;

import java.time.LocalDate;
import java.util.Date;

/**
 * @author 全谢民
 * @version 8.0
 * @description: TODO  用户表实体类
 * @date 2023/10/313:29
 */
public class User {
    private int userId;//用户编号
    private String userPhone;//用户手机号
    private String userName;//用户姓名
    private int sex;//性别 1：男 2：女
    private String gender;//男or女
    private LocalDate birth;//出生日期
    private String interest;//兴趣
    private String userHeader;//头像
    private String userPassword;//用户登录密码
    private int userIntegral;//用户积分
    private int userStatus;//状态：0：禁用 1：启用；默认值为1
    private String userEmail;//邮箱
    private int roleId;//角色id，默认 0：普通用户，1：影院管理员 2：系统管理员
    private int userDeletedState; //1.未删除，2.已删除，删除后不可恢复

    public User() {
    }

    public User(int userId) {
        this.userId = userId;
    }

    public User(int userId, String userName, int sex, LocalDate birth, String interest, String userHeader) {
        this.userId = userId;
        this.userName = userName;
        this.sex = sex;
        this.birth = birth;
        this.interest = interest;
        this.userHeader = userHeader;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userPhone='" + userPhone + '\'' +
                ", userName='" + userName + '\'' +
                ", gender='" + gender + '\'' +
                ", birth=" + birth +
                ", interest='" + interest + '\'' +
                ", userHeader='" + userHeader + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userIntegral=" + userIntegral +
                ", userEmail='" + userEmail + '\'' +
                '}';
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public LocalDate getBirth() {
        return birth;
    }

    public void setBirth(LocalDate birth) {
        this.birth = birth;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public String getUserHeader() {
        return userHeader;
    }

    public void setUserHeader(String userHeader) {
        this.userHeader = userHeader;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public int getUserIntegral() {
        return userIntegral;
    }

    public void setUserIntegral(int userIntegral) {
        this.userIntegral = userIntegral;
    }

    public int getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(int userStatus) {
        this.userStatus = userStatus;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public int getUserDeletedState() {
        return userDeletedState;
    }

    public void setUserDeletedState(int userDeletedState) {
        this.userDeletedState = userDeletedState;
    }
}
